const {readFile} = require('fs');
const {join} = require('path');

module.exports = (req, res) => {
    readFile(join(__dirname, '../../keys/rsa_public_key.pem'), (err, data)=>{
        if (err) return res.cc(err)
        const pubKey = data.toString('ascii');
        res.cc(pubKey, 0);
    })
}